package BusinessLogic;

public class Command {
    
    //Lệnh gửi lên server
    public static final int LOGIN_REQUEST = 201;
    public static final int REGISTER_REQUEST = 211;
    public static final int ADD_FRIEND_REQUEST = 221;
    public static final int ADD_FRIEND_ACCEPT = 225;
    public static final int ADD_FRIEND_REFUSE = 226;
    public static final int CHAT_FRIEND_REQUEST = 231;
    public static final int CHANGE_PASS_REQUEST = 241;
    public static final int SEND_STATE = 251;
    public static final int DELETE_FRIEND_REQUEST = 261;
    public static final int LOCK_FRIEND_REQUEST = 271;
    public static final int UNLOCK_FRIEND_REQUEST = 281;
    public static final int FIND_REQUEST = 291;
    public static final int MESSAGE_SEND = 301;
    public static final int BUZZ = 311;
    public static final int MESSAGE_OFFLINE = 321;
    public static final int CREATE_GROUP = 331;
    public static final int JOIN_GROUP_REQUEST = 341;
    public static final int JOIN_GROUP_ACCEPT = 351;
    public static final int MESSAGE_SEND_GROUP = 361;
    public static final int LEAVE_GROUP = 371;
    public static final int REMOVE_GROUP = 381;
    
    //Lệnh gửi đến client
    public static final int LOGIN_SUCCESS = 202;
    public static final int LOGIN_FAIL = 203;
    public static final int REGISTER_SUCCESS = 212;
    public static final int REGISTER_FAIL = 213;
    public static final int ADD_FRIEND_SUCCESS = 222;
    public static final int ADD_ALREADY_FRIEND = 223;
    public static final int ADD_NO_EXIST = 224;
    public static final int ADD_FRIEND_FAIL = 227;
    public static final int ADD_FRIEND_WAIT = 228;
    public static final int CHAT_FRIEND_SUCCESS = 232;
    public static final int CHAT_OPEN = 233;
    public static final int CHAT_REQUEST_FAIL = 234;
    public static final int CHANGE_PASS_SUCCESS = 242;
    public static final int CHANGE_PASS_FAIL = 243;
    public static final int FRIEND_STATE= 252;
    public static final int DELETE_SUCCESS= 262;
    public static final int DELETE_FAIL= 263;
    public static final int IS_DELETE= 264;
    public static final int LOCK_ALDREADY = 272;
    public static final int LOCK_SUCCESS = 273;
    public static final int LOCK_NOT_FRIEND = 274;
    public static final int LOCK_FAIL = 275;
    public static final int UNLOCK_SUCCESS = 282;
    public static final int UNLOCK_NOT_LOCK = 283;
    public static final int UNLOCK_NOT_FRIEND = 284;
    public static final int UNLOCK_FAIL = 285;
    public static final int FIND_LIST = 292;
    public static final int FIND_FAIL = 293;
    public static final int RECIEVED_MESSAGE = 302;
    public static final int SEND_BUZZ = 312;
    public static final int IS_WATCHED_MESSAGE_OFFLINE = 322;
    public static final int EXISTS_GROUP = 332;
    public static final int CREATE_GROUP_SUCCESS = 333;
    public static final int CREATE_GROUP_FAIL = 334;
    public static final int HAVE_REQUEST_JOIN_GROUP = 342;
    public static final int OPEN_CHAT_GROUP = 343;
    public static final int ALREADY_JOIN_GROUP = 344;
    public static final int GROUP_ADD_NEW_USER = 352;
    public static final int ADD_NEW_MEMBER = 353;
    public static final int MESSAGE_RECIEVED_GROUP = 362;
    public static final int REMOVE_MEMBER_GROUP = 372;
    public static final int REMOVE_GROUP_SUCCESS = 382;
    public static final int REMOVE_GROUP_SUCCESS_AND_CLOSE = 383;
    
    //Trạng thái đăng nhập
    public static final String OFFLINE="0";
    public static final String ONLINE="1";
    public static final String BUSY="2";
    public static final String INVISIBLE="3";
}
